<?php 
## include required files
/*******************************/
require_once '../model/membershipplan.php';
/*******************************/
## Create Objects
/*******************************/
$planobj = new Model_PLAN();
/*******************************/

if($_GET['id']!='') {
	$submenu_id=base64_decode($_GET['id']);
	$smarty->assign('page', $_GET['page']);
	$planArray=$planobj->getPlanDetailsById($submenu_id);
	$smarty->assign('planArray', $planArray);
}

## Set active class variable for left menu
$smarty->assign('activeclass', 'membershipplan');
$smarty->assign('mainmenu', '2');

## Unset all the objects created which are on this page
unset($planobj);

$smarty->display(TEMPLATEDIR_ADMIN. 'membershipplan/plandetails.tpl');
unset($smarty);
?>